package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 贾育权~
 * @version 1.0
 */
@Mapper
public interface UserMapper {//配置它的sql 语句
    @Select("select * from user where openid=#{openid}")
    User getByOpenid(String openid);//就是根据我们传进来的openid 去查询
    //但是我们就是有些东西是空值

    void insert(User user);

    User getById(Long userId);
}
